package com.bxx.ermall.service.impl;

import com.bxx.ermall.common.dto.CommentDto;
import com.bxx.ermall.entity.Comment;
import com.bxx.ermall.mapper.CommentMapper;
import com.bxx.ermall.service.CommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author buxiaoxing
 * @since 2021-02-02
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {

    @Override
    public List<CommentDto> getGoodsComment(Integer id) {
        return this.baseMapper.getGoodsComment(id);
    }

    @Override
    public List<CommentDto> getUserComment(Integer id) {
        return this.baseMapper.getUserComment(id);
    }
}
